import * as apiService from '@/services/api.js';

/**
 * 优惠活动列表
 * @return {Promise<*[]>}
 */
const activityListApi = async(actType) => {
  const [result, data] = await apiService.post(api.ACTIVITY_LIST, {
    actType
  });

  return [result, data];
};

/**
 * 全局活动弹窗
 * @returns {Promise<*[]>}
 */
const activityDialogListApi = async() => {

  const [result,data] = await apiService.post(api.GLOBAL_DIALOG_LIST, {
    app: consts.APP_PROXY,
  });

  return [result,data];
};


export {
  activityListApi,
  activityDialogListApi,
};
